<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>


			 <?php $temp_query = clone $wp_query; ?> 
			 <?php query_posts('category_name=' . $pl_category . '&showposts=' . $pl_count . '');  ?>
			
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}
			 if ($images = get_children(array(
				'post_parent' => $post->ID,
				'numberposts' => '1',
				'post_type' => 'attachment',
				'post_mime_type' => 'image',
				'order' => 'ASC',
				'orderby' => 'menu_order')))  
			 foreach($images as $image) {  
				$exehill_image = $image->guid; 
				$exehill_thumb = wp_get_attachment_thumb_url( $image->ID);			
				} else {
				$exehill_thumb = site_url('/wp-content/themes/exehill2/images/noimage.png');
				} ?>



<div class="blog_container">

	<div class="blog_go"> <a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>">Read more | <strong><?php the_time('M j, Y') ?></strong></a>
	</div>

	<div class="blog_left">
	
		<div class="blog_thumb" style="background: url(<?php echo $exehill_thumb; ?>) no-repeat; "><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"></a>
		</div>
	
	</div>
	
	<div class="blog_content">
	
		<div class="blog_headline">
		
			<span class="blog_title"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
			
			<div class="clear">
			</div>
			
		</div>
		
		<div class="blog_excerpt"><?php the_excerpt(); ?>
		</div>
	
	</div>
	
	<div class="clear">
	</div>
	
</div>

<?php endwhile; $wp_query = clone $temp_query; ?>
<div class="vid_bottominfo"><a href="<?php bloginfo('home'); ?>/category/<?php echo $pl_category; ?>/"><?php if ($exehill_cat_link) { echo $exehill_cat_link; } else { ?>View all posts in <?php echo $pl_category; ?><?php } ?></a></div>